﻿using DataTransfer.SDK.Models;
using NPOI.SS.UserModel;
using System.Data;

namespace DataTransfer.SDK.Events
{
    /// <summary>
    /// 
    /// </summary>
    public class ImportExcelFillTableEventArgs : EventArgs
    {
        DataTable _dataTable;
        ISheet _sheet;
        IExcelImportSheet _importSheet;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="importSheet"></param>
        /// <param name="sheet"></param>
        /// <param name="dataTable"></param>
        public ImportExcelFillTableEventArgs(IExcelImportSheet importSheet, ISheet sheet, DataTable dataTable)
        {
            this._importSheet = importSheet;
            this._sheet = sheet;
            this._dataTable = dataTable;
        }

        /// <summary>
        /// 
        /// </summary>
        public IExcelImportSheet ImportSheet
        {
            get { return _importSheet; }
        }

        /// <summary>
        /// 
        /// </summary>
        public ISheet Sheet
        {
            get { return _sheet; }
        }

        /// <summary>
        /// 
        /// </summary>
        public DataTable Table
        {
            get { return _dataTable; }
        }

    }
}
